package ljl.alg.wangzheng_camp.round1.veryveryeasy;

public class _344_reverse_string {
    /**
     * 不就双指针？
     * */
    public void reverseString(char[] s) {
        int i = 0, j = s.length - 1;
        while (i < j) {
            char t = s[i]; s[i] = s[j]; s[j] = t;
            i++; j--;
        }
    }
}
